Optimal. Leaf size=118 \[ \frac{\left (b x+c x^2\right )^{3/2} (4 A c+b B)}{2 b x}+\frac{3}{4} \sqrt{b x+c x^2} (4 A c+b B)+\frac{3 b (4 A c+b B) \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{4 \sqrt{c}}-\frac{2 A \left (b x+c x^2\right )^{5/2}}{b x^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.119713, antiderivative size = 118, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {792, 664, 620, 206} \[ \frac{\left (b x+c x^2\right )^{3/2} (4 A c+b B)}{2 b x}+\frac{3}{4} \sqrt{b x+c x^2} (4 A c+b B)+\frac{3 b (4 A c+b B) \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{4 \sqrt{c}}-\frac{2 A \left (b x+c x^2\right )^{5/2}}{b x^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 792
Rule 664
Rule 620
Rule 206
Rubi steps
\begin{align*} \int \frac{(A+B x) \left (b x+c x^2\right )^{3/2}}{x^3} \, dx &=-\frac{2 A \left (b x+c x^2\right )^{5/2}}{b x^3}+\frac{\left (2 \left (-3 (-b B+A c)+\frac{5}{2} (-b B+2 A c)\right )\right ) \int \frac{\left (b x+c x^2\right )^{3/2}}{x^2} \, dx}{b}\\ &=\frac{(b B+4 A c) \left (b x+c x^2\right )^{3/2}}{2 b x}-\frac{2 A \left (b x+c x^2\right )^{5/2}}{b x^3}+\frac{1}{4} (3 (b B+4 A c)) \int \frac{\sqrt{b x+c x^2}}{x} \, dx\\ &=\frac{3}{4} (b B+4 A c) \sqrt{b x+c x^2}+\frac{(b B+4 A c) \left (b x+c x^2\right )^{3/2}}{2 b x}-\frac{2 A \left (b x+c x^2\right )^{5/2}}{b x^3}+\frac{1}{8} (3 b (b B+4 A c)) \int \frac{1}{\sqrt{b x+c x^2}} \, dx\\ &=\frac{3}{4} (b B+4 A c) \sqrt{b x+c x^2}+\frac{(b B+4 A c) \left (b x+c x^2\right )^{3/2}}{2 b x}-\frac{2 A \left (b x+c x^2\right )^{5/2}}{b x^3}+\frac{1}{4} (3 b (b B+4 A c)) \operatorname{Subst}\left (\int \frac{1}{1-c x^2} \, dx,x,\frac{x}{\sqrt{b x+c x^2}}\right )\\ &=\frac{3}{4} (b B+4 A c) \sqrt{b x+c x^2}+\frac{(b B+4 A c) \left (b x+c x^2\right )^{3/2}}{2 b x}-\frac{2 A \left (b x+c x^2\right )^{5/2}}{b x^3}+\frac{3 b (b B+4 A c) \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{4 \sqrt{c}}\\ \end{align*}
Mathematica [A] time = 0.177727, size = 94, normalized size = 0.8 \[ \frac{\sqrt{x (b+c x)} \left (\frac{3 \sqrt{b} \sqrt{x} (4 A c+b B) \sinh ^{-1}\left (\frac{\sqrt{c} \sqrt{x}}{\sqrt{b}}\right )}{\sqrt{c} \sqrt{\frac{c x}{b}+1}}+A (4 c x-8 b)+B x (5 b+2 c x)\right )}{4 x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.007, size = 232, normalized size = 2. \begin{align*} -2\,{\frac{A \left ( c{x}^{2}+bx \right ) ^{5/2}}{b{x}^{3}}}+8\,{\frac{Ac \left ( c{x}^{2}+bx \right ) ^{5/2}}{{b}^{2}{x}^{2}}}-8\,{\frac{A{c}^{2} \left ( c{x}^{2}+bx \right ) ^{3/2}}{{b}^{2}}}-6\,{\frac{A{c}^{2}\sqrt{c{x}^{2}+bx}x}{b}}-3\,Ac\sqrt{c{x}^{2}+bx}+{\frac{3\,Ab}{2}\sqrt{c}\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ) }+2\,{\frac{B \left ( c{x}^{2}+bx \right ) ^{5/2}}{b{x}^{2}}}-2\,{\frac{Bc \left ( c{x}^{2}+bx \right ) ^{3/2}}{b}}-{\frac{3\,Bcx}{2}\sqrt{c{x}^{2}+bx}}-{\frac{3\,bB}{4}\sqrt{c{x}^{2}+bx}}+{\frac{3\,{b}^{2}B}{8}\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){\frac{1}{\sqrt{c}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.00629, size = 427, normalized size = 3.62 \begin{align*} \left [\frac{3 \,{\left (B b^{2} + 4 \, A b c\right )} \sqrt{c} x \log \left (2 \, c x + b + 2 \, \sqrt{c x^{2} + b x} \sqrt{c}\right ) + 2 \,{\left (2 \, B c^{2} x^{2} - 8 \, A b c +{\left (5 \, B b c + 4 \, A c^{2}\right )} x\right )} \sqrt{c x^{2} + b x}}{8 \, c x}, -\frac{3 \,{\left (B b^{2} + 4 \, A b c\right )} \sqrt{-c} x \arctan \left (\frac{\sqrt{c x^{2} + b x} \sqrt{-c}}{c x}\right ) -{\left (2 \, B c^{2} x^{2} - 8 \, A b c +{\left (5 \, B b c + 4 \, A c^{2}\right )} x\right )} \sqrt{c x^{2} + b x}}{4 \, c x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (x \left (b + c x\right )\right )^{\frac{3}{2}} \left (A + B x\right )}{x^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17301, size = 147, normalized size = 1.25 \begin{align*} \frac{2 \, A b^{2}}{\sqrt{c} x - \sqrt{c x^{2} + b x}} + \frac{1}{4} \,{\left (2 \, B c x + \frac{5 \, B b c + 4 \, A c^{2}}{c}\right )} \sqrt{c x^{2} + b x} - \frac{3 \,{\left (B b^{2} + 4 \, A b c\right )} \log \left ({\left | -2 \,{\left (\sqrt{c} x - \sqrt{c x^{2} + b x}\right )} \sqrt{c} - b \right |}\right )}{8 \, \sqrt{c}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]